---
sidebar_position: 1
title: Testing
sidebar_label: Testing
---

Testing is one of the best things in Hyper Fetch. With our architecture and focus on global singleton structure, tests
can be largely based on the application’s configuration. This means tests are no longer sensitive to micro-changes (like
changing endpoints or types). Everything reacts and adapts to tests or shows the appropriate error – making tests easier
to maintain and faster to write.

:::secondary What you'll learn

1.  The **benefits** of testing with Hyper Fetch.
2.  How to **isolate tests** to ensure they are deterministic.
3.  How to **mock API requests** for reliable and fast tests.

:::

---

## Benefits

- Our setup is always up-to-date with the production solution.
- No configuration or setup duplication.
- Easy test maintenance.
- Faster test builds.

---

## Testing Guides

To help you get started with testing in Hyper Fetch, we have prepared a few guides that cover the most important topics.
We recommend reading them in the following order to get a complete picture of our testing philosophy.

<LinkCard
  type="guides"
  title="Isolation"
  description="Learn how to isolate your tests to prevent them from interfering with each other."
  to="/docs/guides/testing/isolation"
/>
<LinkCard
  type="guides"
  title="Mocking"
  description="Discover how to mock API requests to create reliable and fast tests."
  to="/docs/guides/testing/mocking"
/>

---

:::success Congratulations!

You've got an overview of testing in Hyper Fetch!

- You understand the **main benefits** of the Hyper Fetch testing approach.
- You know where to find **detailed guides** on test isolation and mocking.
- You are ready to dive deeper into writing **robust and maintainable tests**.

:::
